// 统一请求路径前缀在libs/axios.js中修改
import {
    getRequest,
    postRequest,
    putRequest,
    deleteRequest
  } from "@/libs/axios";
  
  // 获取商品进货单分页列表
  export const getPurchaseOrderListData = params => {
    return getRequest(`/purchaseOrder/page`, params);
  }
  // 保存、添加商品进货信息
  export const postPurchaseOrder = params => {
    return postRequest(`/purchaseOrder`,params);
  }
  // 更新商品进货信息
  export const putPurchaseOrder= params => {
    return putRequest(`/purchaseOrder`,params);
  }
  // 删除商品进货信息
  export const deletePurchaseOrder = id => {
    return deleteRequest(`/purchaseOrder/${id}`);
  }
  // 删除商品进货信息
  export const deleteBatchPurchaseOrder = params => {
    return deleteRequest(`/purchaseOrder/`,params);
  }